package cn.melonlib.cores.commons.comp.dao;

import cn.melonlib.cores.commons.comp.enums.FileStoreType;
import org.springframework.stereotype.Repository;

import java.io.File;
import java.io.InputStream;
import java.util.List;

@Repository
public interface FileSystem {

    public void store(InputStream in, String path, FileStoreType storeType) throws Exception;
    
    public FileSystemFileReader<File> read(String path,FileStoreType storeType) throws Exception;

    public List<File> dir(String path,FileStoreType storeType) throws Exception;

    public void delete(String path,FileStoreType storeType) throws Exception;

}
